package calbs.socket.pojo.resp;/**
 * Created by zhangqin on 2017/6/27.
 */

import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author 张钦
 * @create 2017-06-27 16:24
 **/
public class RespAbLineMsg implements Serializable ,Comparable<RespAbLineMsg>{
    private double distance;
    private int serialNumber;
    private int abLineId;
    private String fieldName;
    private String abLineName;
    private String aLat;
    private String aLng;
    private double aHeight;
    private String bLat;
    private String bLng;
    private double bHeight;
    private int utcTime;
    private String basex;
    private String basey;
    private String basez;

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public double getaHeight() {
        return aHeight;
    }

    public void setaHeight(double aHeight) {
        this.aHeight = aHeight;
    }

    public double getbHeight() {
        return bHeight;
    }

    public void setbHeight(double bHeight) {
        this.bHeight = bHeight;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(int serialNumber) {
        this.serialNumber = serialNumber;
    }

    public int getAbLineId() {
        return abLineId;
    }

    public void setAbLineId(int abLineId) {
        this.abLineId = abLineId;
    }

    public String getAbLineName() {
        return abLineName;
    }

    public void setAbLineName(String abLineName) {
        this.abLineName = abLineName;
    }

    public String getaLat() {
        return aLat;
    }

    public void setaLat(String aLat) {
        this.aLat = aLat;
    }

    public String getaLng() {
        return aLng;
    }

    public void setaLng(String aLng) {
        this.aLng = aLng;
    }

    public String getbLat() {
        return bLat;
    }

    public void setbLat(String bLat) {
        this.bLat = bLat;
    }

    public String getbLng() {
        return bLng;
    }

    public void setbLng(String bLng) {
        this.bLng = bLng;
    }

    public int getUtcTime() {
        return utcTime;
    }

    public void setUtcTime(int utcTime) {
        this.utcTime = utcTime;
    }

    public String getBasex() {
        return basex;
    }

    public void setBasex(String basex) {
        this.basex = basex;
    }

    public String getBasey() {
        return basey;
    }

    public void setBasey(String basey) {
        this.basey = basey;
    }

    public String getBasez() {
        return basez;
    }

    public void setBasez(String basez) {
        this.basez = basez;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RespAbLineMsg that = (RespAbLineMsg) o;

        return abLineId == that.abLineId;
    }

    @Override
    public int hashCode() {
        return abLineId;
    }

    @Override
    public int compareTo(RespAbLineMsg o) {
        if(o.distance>this.distance){
            return -1;
        }else if(o.distance == this.distance){
            return 0;
        }else{
            return 1;
        }
    }
}
